package com.itheima.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 房屋租赁记录信息
 */
@Data
public class HouseOfRent {
    private static final long serialVersionUID = 1L;

    //主键ID
    private Long id;

    //租客ID
    private Long userId;

    //房源ID
    private Long houseId;

    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    //更新时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    //逻辑删除：0-未删除 1-删除
    @TableLogic
    private Integer isDeleted;
}
